﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="message_list.aspx.cs" Inherits="TRPOP.CMS.Web.cms.Message.message_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>留言管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <table id="page_navigator">
        <tr>
            <td class="align_l">
                当前位置：系统管理 -> 留言管理
            </td>
        </tr>
    </table>
    <!--搜索 开始-->
    <table class="table_search" cellpadding="0" cellspacing="2" width="100%" border="0">
        <tr>
            <td nowrap="nowrap" width="10%" align="right">
                关键字：
            </td>
            <td nowrap="nowrap" width="22%" align="left">
                <asp:TextBox ID="txtMessageTitle" runat="server" Width="180px" MaxLength="180"></asp:TextBox>
            </td>
            <td nowrap="nowrap" width="10%" align="right">
                留言类型：
            </td>
            <td nowrap="nowrap" width="10%" align="left">
                <asp:DropDownList ID="ddlType" runat="server">
                </asp:DropDownList>
            </td>
            <td nowrap="nowrap" width="10%" align="right">
                留言状态：
            </td>
            <td nowrap="nowrap" width="15%" align="left">
                <asp:DropDownList ID="ddlStatus" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="Search" runat="server" CssClass="button_style" Text="开始搜索" OnClick="Search_Click" />
            </td>
        </tr>
    </table>
    <!--搜索 结束-->
    <table class="table_list">
        <tr class="tr_title">
            <th colspan="8">
                留言管理
            </th>
        </tr>
        <tr class="tr_title">
            <th width="8%">
                留言ID
            </th>
            <th width="20%">
                留言标题
            </th>
            <th width="8%">
                留言类型
            </th>
            <th width="12%">
                联系人
            </th>
            <th width="12%">
                留言对象
            </th>
            <th width="15%">
                留言时间
            </th>
            <th width="8%">
                状态
            </th>
            <th>
                执行操作
            </th>
        </tr>
        <cms:Repeater runat="server" ID="rptList">
            <ItemTemplate>
                <tr class="tr_listitem" onmouseout="this.className='tr_mouseout'" onmouseover="this.className='tr_mouseover'">
                    <td align="center">
                        <%#Eval("iMessageID")%>
                    </td>
                    <td align="center">
                        <%#Eval("nvcMessageTitle")%>
                    </td>
                    <td align="center">
                        <%#ddlType.Items.FindByValue(Eval("iMessageTypeID").ToString())%>
                    </td>
                    <td align="center">
                        <%#Eval("nvcContactName")%>
                    </td>
                    <td align="center">
                        <%#Eval("nvcMessageSend")%>
                    </td>
                    <td align="center">
                        <%#Eval("dtCreationTime")%>
                    </td>
                    <td align="center">
                        <%#ddlStatus.Items.FindByValue(Eval("iMessageStatusID").ToString())%>
                    </td>
                    <td align="center">
                        <a href="messagereply.aspx?id=<%#Eval("iMessageID") %>">查看</a> <a href="mseeage_save.aspx?id=<%#Eval("iMessageID") %>">
                            编辑 </a>
                        <%# Convert.ToInt32(Eval("iMessageReplyID")) > 0 ? "已回复" : string.Format("<a href='messagereply_save.aspx?id={0}'>回复</a>",Eval("iMessageID"))%>
                        <cms:LinkButton ID="lbtnDelete" runat="server" Text="删除" CommandArgument='<%#Eval("iMessageID") %>'
                            OnClick="lbtnDelete_Click" OnClientClick="return confirm('你确定要删除吗？');"></cms:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </cms:Repeater>
    </table>
    <table class="table_operator">
        <tr class="tr_pager">
            <td colspan="8">
                <cms:PagerGet ID="Pager" runat="server" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
